#pragma once
#include <fmod.hpp>
#include <fmod_errors.h>
#include <map>
#include <string>
#pragma  comment( lib, "fmodex_vc.lib" )
struct tagSound
{
	FMOD::Sound      *Sound;
	FMOD::Channel    *Channel;
};
class SoundManager
{
private:
	FMOD::System * System;
	FMOD::Sound * SoundName;
	FMOD::Channel * channel;
	std::map<std::string , tagSound *> soundBox;
	int sound_count;

public:
	SoundManager();	
	~SoundManager();

	void playsound(std::string soundName);
	void stopsound(std::string soundName);
	void loadsound(std::string soundName);
	void stopsoundAll();
};